package com.Ajava1704.for并发包下的类.Forlock;

import com.Ajava1704.for并发包下的类.ForSemphor.ForSemphRunable;
import net.bytebuddy.dynamic.scaffold.MethodGraph;

import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Vector;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 作者: LCG
 * 日期: 2020/2/11 11:30
 * 描述:
 */
public class TestLock {
    public static void main(String[] args) {
        Lock lock=new ReentrantLock();

        Semaphore semaphore=new Semaphore(1);

        Thread thread2=new Thread(new ForReentLockRunable(semaphore),"A");
        thread2.start();

        Thread thread3=new Thread(new ForReentLockRunable(semaphore),"B");
        thread3.start();

        Thread thread4=new Thread(new ForReentLockRunable(semaphore),"C");
        thread4.start();


        LinkedHashMap linkedHashMap=new LinkedHashMap();

        LinkedList linkedList=new LinkedList();

        Vector vector=new Vector();

        //HashSet

        ReentrantLock reentrantLock=new ReentrantLock();



    }
}
